package cn.wind.xboot.logic.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消息
 * </p>
 *
 * @author wind
 * @since 2018-12-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_message")
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 接收人id
     */
    private Long target;

    /**
     * 接收人姓名
     */
    private String targetName;

    /**
     * 发送人
     */
    private Long sender;

    /**
     * 发送人姓名
     */
    private String senderName;

    /**
     * 是否已读 0未读1已读
     */
    private Integer isRead;

    /**
     * 消息类型 1系统消息2消费消息
     */
    private Integer type;

    /**
     * 标题
     */
    private String title;

    /**
     * 是否富文本 0否1是
     */
    private Integer isHtml;

    /**
     * 普通内容
     */
    private String content;

    /**
     * 富文本内容
     */
    private String contentHtml;

    private Integer status;

    /**
     * 删除标记 0未删除1已删除
     */
    private Integer isDeleted;

    private Long createBy;

    private Date createTime;

    private Long updateBy;

    private Date updateTime;


}
